﻿namespace TruyenTranhCrawler
{
    public class Config
    {
        public const string GoogleHostPattern = "(google.com|blogspot.com|googleusercontent.com)";

        public static string PhysicalStaticFile = System.Configuration.ConfigurationManager.AppSettings["physicalStaticFile"];
        public static bool UpdateBookOnly = System.Configuration.ConfigurationManager.AppSettings["UpdateBookOnly"].Equals("true");
        public static string LogUpdatedPath = System.Configuration.ConfigurationManager.AppSettings["LogUpdatedPath"];
        public static string BookFolder = System.Configuration.ConfigurationManager.AppSettings["BookFolder"];

        public static bool CanCrawlBlogTruyen = System.Configuration.ConfigurationManager.AppSettings["IsCrawlBlogtruyen"].Equals("true");
        public static bool CanCrawlComicVn = System.Configuration.ConfigurationManager.AppSettings["IsCrawlComicVn"].Equals("true");
        
        public static bool CanCrawlVitaku = System.Configuration.ConfigurationManager.AppSettings["IsCrawlVitaku"].Equals("true");
        public static bool VitakuFirstGetData = System.Configuration.ConfigurationManager.AppSettings["VitakuFirstGetData"].Equals("true");
        
    }
}
